﻿
namespace Cos.Module.Form.NHibernate.Test
{
    using System;
    using Cos.Core.NHibernate;

    using Cos.Core.NHibernate.Tests;

    using NUnit.Framework;

    [TestFixture]
    public class FormLogDataModelFixture : ModuleFixtureBase
    {
        [Test]
        public void CanMapFormLogDataModel()
        {
            new PersistenceSpecification<FormLogDataModel>(Session)
             .CheckProperty(x => x.CultureCode, "en-CA")
             .CheckProperty(x => x.ItemType, "Toys")
             .CheckProperty(x => x.LogTime, new DateTime(2000, 01, 01))
             .CheckProperty(x => x.Type, "Cannot say")
             .CheckProperty(x => x.UserName, "gkhawaja")
             .CheckProperty(x => x.UserId, 1)
             .VerifyTheMappings();
        }
    }
}
